package com.byzk.p2p.admin.base.util;

public class PageUtil {
	private int index = 1; // 当前页数
	private int limit = 10; // 每页显示多少条记录
	private int start; // 开始条数
	private int pageCounts; // 页数
	private String uid; // app端校验用户id时使用

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
		this.start = (index - 1) * limit;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public int getPageCounts() {
		return pageCounts;
	}

	public void setPageCounts(int pageCounts) {
		this.pageCounts = pageCounts;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

}
